<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/15
 * Time: 18:19
 */

class Config
{
//------------------ pe ------------------
    //redis logs
    const Redis_HostPort_Logs	= "r-wz94614545860734.redis.rds.aliyuncs.com:6379";
    const Redis_Password_Logs	= "Xx20180701";
    const Redis_Database_Logs	= 0;
    const Redis_HostPort		= "r-wz94614545860734.redis.rds.aliyuncs.com:6379";
    const Redis_Password		= "Xx20180701";
    const Redis_Database		= 59;

    //db
    const DB_Host			= "rm-wz97m7f230mzxryh5.mysql.rds.aliyuncs.com";
    const DB_Port			= "3306";
    const DB_User			= "proadmin";
    const DB_Password		= "Xiuxian2018";
    const DB_Name			= "xiuxian";
    const DB_Charset		= "utf8mb4";

    const Processor_Port = "12592";
    const Processor_Address =  "127.0.0.1";
    const Timer_Port =  "30599";
    const Timer_Address =  "127.0.0.1";

    const GameClient_Port =  "30592";
    const GameServer_Port =  "30591";
    const GameWeb_Port    =  "30590";

    const Ticket_Mode       = 2;    //房卡支付形式，1AA，2房主
    const Room_IsReuse      = 0;    //房间是否重复使用，0否1是
    const GameNum_EachRound          = 6;   //每轮局数

    const Log_Dir   =        "/data/wwwlogs/workman/nbull/";

    const Is_SendGameScore     = 0;
    const Dealer_Num        = 2;
    const Verification_Code = "987654321098765432109876543210zz";

    const Can_BreakRoom         = 1;        //是否能主动下庄

    //底分类型
    const Rule_ScoreType_1          = 1;
    const Rule_ScoreType_2          = 2;
    const Rule_ScoreType_3          = 3;
    const Rule_ScoreType_4          = 4;
    const Rule_ScoreType_5          = 5;

    /*      上庄分数        */
    const BankerScore_1             = 0;
    const BankerScore_2             = 300;
    const BankerScore_3             = 500;
    const BankerScore_4             = 1000;

    const Guest_MaxCount            = 9;  //观战人数

    /*      游戏人数范围    */
    const GameUser_MinCount         = 2;
    const GameUser_MaxCount         = 9;

    /*      明牌抢庄倍数选择        */
    const GrabCanBet_1          = 1;
    const GrabCanBet_2          = 2;
    const GrabCanBet_3          = 4;

    /*      闲家下注倍数选择        */
    const PlayerCanBet_1          = 1;
    const PlayerCanBet_2          = 2;
    const PlayerCanBet_3          = 4;
    const PlayerCanBet_4          = 5;
}